package com.hoshiicloud.mallshop;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Configuration;

/**
 * 2019/9/12 11:36
 */
@Configuration
@SpringBootApplication(scanBasePackages = {"com.hoshiicloud.mallshop","com.hoshiicloud.common"})
@EnableEurekaClient
@EnableCircuitBreaker
@EnableFeignClients
@Slf4j
public class MallShopApplication {
    public static void main(String[] args) {
        try {
            SpringApplication.run(MallShopApplication.class, args);
            log.info("---------店铺聚合服务启动成功-------------");
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
